package com.sumainfor.pc.epc.controller.market;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.service.impl.market.HousingRepairEvaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 查询装修中的房源(市场部调用)
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-07 11:08
 **/
@Controller
@RequestMapping("/key/HousingRepairEva")
public class HousingRepairEvaController {

    @Autowired
    HousingRepairEvaService housingRepairEvaService;

    @ResponseBody
    @PostMapping("/getRepHouList")
    public JsonResult getRepHouList() {
        return housingRepairEvaService.getRepHouList();
    }

    /**
     * 查询房源基础配置
     *
     * @param hId    房源主编号
     * @param hConId 房源配置编号
     * @return
     */
    @ResponseBody
    @PostMapping("/getHousingConfigList")
    public JsonResult getHousingConfigList(String hId, String hConId) {
        return housingRepairEvaService.getHousingConfigList(hId, hConId);
    }

}
